<?php
	define('DS', DIRECTORY_SEPARATOR);
	define('ROOT', dirname(dirname(dirname(__FILE__))));
	define('APP', ROOT.DS.'app'.DS);
	define('CONFIG', APP.'config'.DS);

	include(CONFIG.'shortcake.cnf');

//	var_dump(SC_CORE_PATH);
	include(SC_CORE_PATH.'bootstrap.php');

	$dispatcher = new Dispatcher();
	try{
		$dispatcher->dispatch($url);
	}
	catch (MissingControllerException $e){
		print $e->getMessage();
	}
	catch (MissingActionException $e){
		print $e->getMessage();
	}

